package com.tz.crm.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Error Log
 */
@Entity
@Table(name = "sys_log_err")
public class ErrorLog extends BaseEntity {

    private String className; // 全限定类名
    private String methodName; // 方法名
    private String exName;//异常类型全限定类名
    private String exMessage;// 异常消息

    /**
     * 空参构造
     */
    public ErrorLog() {
    }

    @Column(name = "err_class", nullable = false)
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Column(name = "err_method", nullable = false)
    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    @Column(name = "ex_name", nullable = false)
    public String getExName() {
        return exName;
    }

    public void setExName(String exName) {
        this.exName = exName;
    }

    @Column(name = "ex_msg", length = 2000)
    public String getExMessage() {
        return exMessage;
    }

    public void setExMessage(String exMessage) {
        this.exMessage = exMessage;
    }

    @Override
    public String toString() {
        return "ErrorLog{" +
                "className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", exName='" + exName + '\'' +
                ", exMessage='" + exMessage + '\'' +
                '}';
    }
}
